package com.ruoyi.be.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.be.mapper.MyMedicalOutpatientdoctorReceiverecordMapper;
import com.ruoyi.be.domain.MyMedicalOutpatientdoctorReceiverecord;
import com.ruoyi.be.service.IMyMedicalOutpatientdoctorReceiverecordService;

/**
 * 住院患者信息Service业务层处理
 * 
 * @author ly
 * @date 2022-01-05
 */
@Service
public class MyMedicalOutpatientdoctorReceiverecordServiceImpl implements IMyMedicalOutpatientdoctorReceiverecordService 
{
    @Autowired
    private MyMedicalOutpatientdoctorReceiverecordMapper myMedicalOutpatientdoctorReceiverecordMapper;

    /**
     * 查询住院患者信息
     * 
     * @param opdoctorreceiverecordid 住院患者信息主键
     * @return 住院患者信息
     */
    @Override
    public MyMedicalOutpatientdoctorReceiverecord selectMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordid(String opdoctorreceiverecordid)
    {
        return myMedicalOutpatientdoctorReceiverecordMapper.selectMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordid(opdoctorreceiverecordid);
    }

    /**
     * 查询住院患者信息列表
     * 
     * @param myMedicalOutpatientdoctorReceiverecord 住院患者信息
     * @return 住院患者信息
     */
    @Override
    public List<MyMedicalOutpatientdoctorReceiverecord> selectMyMedicalOutpatientdoctorReceiverecordList(MyMedicalOutpatientdoctorReceiverecord myMedicalOutpatientdoctorReceiverecord)
    {
        return myMedicalOutpatientdoctorReceiverecordMapper.selectMyMedicalOutpatientdoctorReceiverecordList(myMedicalOutpatientdoctorReceiverecord);
    }

    /**
     * 新增住院患者信息
     * 
     * @param myMedicalOutpatientdoctorReceiverecord 住院患者信息
     * @return 结果
     */
    @Override
    public int insertMyMedicalOutpatientdoctorReceiverecord(MyMedicalOutpatientdoctorReceiverecord myMedicalOutpatientdoctorReceiverecord)
    {
        myMedicalOutpatientdoctorReceiverecord.setCreateTime(DateUtils.getNowDate());
        return myMedicalOutpatientdoctorReceiverecordMapper.insertMyMedicalOutpatientdoctorReceiverecord(myMedicalOutpatientdoctorReceiverecord);
    }

    /**
     * 修改住院患者信息
     * 
     * @param myMedicalOutpatientdoctorReceiverecord 住院患者信息
     * @return 结果
     */
    @Override
    public int updateMyMedicalOutpatientdoctorReceiverecord(MyMedicalOutpatientdoctorReceiverecord myMedicalOutpatientdoctorReceiverecord)
    {
        return myMedicalOutpatientdoctorReceiverecordMapper.updateMyMedicalOutpatientdoctorReceiverecord(myMedicalOutpatientdoctorReceiverecord);
    }

    @Override
    public int updateMyMedicalOutpatientdoctorReceiverecordUpdate(MyMedicalOutpatientdoctorReceiverecord myMedicalOutpatientdoctorReceiverecord) {
        return myMedicalOutpatientdoctorReceiverecordMapper.updateMyMedicalOutpatientdoctorReceiverecordUpdate(myMedicalOutpatientdoctorReceiverecord);
    }

    /**
     * 批量删除住院患者信息
     * 
     * @param opdoctorreceiverecordids 需要删除的住院患者信息主键
     * @return 结果
     */
    @Override
    public int deleteMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordids(String[] opdoctorreceiverecordids)
    {
        return myMedicalOutpatientdoctorReceiverecordMapper.deleteMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordids(opdoctorreceiverecordids);
    }

    /**
     * 删除住院患者信息信息
     * 
     * @param opdoctorreceiverecordid 住院患者信息主键
     * @return 结果
     */
    @Override
    public int deleteMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordid(String opdoctorreceiverecordid)
    {
        return myMedicalOutpatientdoctorReceiverecordMapper.deleteMyMedicalOutpatientdoctorReceiverecordByOpdoctorreceiverecordid(opdoctorreceiverecordid);
    }
}
